<%@ page language="java" import="com.zhuozhengsoft.pageoffice.*" %>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.pageoffice.cn" prefix="po"%>

<%
  PageOfficeCtrl poCtrl1 = new PageOfficeCtrl(request);
  poCtrl1.setServerPage("poserver.zz"); //此行必须
  poCtrl1.setSaveFilePage("savefile.jsp");//如要保存文件，此行必须
  //打开文件
  String realPath = request.getSession().getServletContext().getRealPath("/");
  poCtrl1.webOpen(realPath+"doc/test.docx", OpenModeType.docNormalEdit, "张三");


%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>测试word在线使用</title>

  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <meta http-equiv="expires" content="0">
  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  <meta http-equiv="description" content="This is my page">

  <script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
  <script type="text/javascript" src="pageoffice.js" id="po_js_main"></script>






</head>

<body>

<%-- 方式2. 本方式是采用 后台servlet直接读取，不建议使用，对IE不支持--%>


 <%=poCtrl1.getHtmlCode("PageOfficeCtrl1")%>


</body>
</html>